import request from "utils/request";
//教程列表 或 我的教程
export function course_getListByCon(params = {}, loading = true) {
  return request({
    url: 'api/course/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//教程详情
export function course_getById(params = {}, loading = true) {
  return request({
    url: 'api/course/getById',
    method: 'get',
    params,
    loading
  })
}
//视频详情
export function videoTutorial_getById(params = {}, loading = true) {
  return request({
    url: 'api/videoTutorial/getById',
    method: 'get',
    params,
    loading
  })
}
//视频详情
export function videoTutorial_getOneById(params = {}, loading = true) {
  return request({
    url: 'api/videoTutorial/getOneById',
    method: 'get',
    params,
    loading
  })
}
//看视频
export function viewingRecord_viewingRecord(data = {}) {
  return request({
    url: 'api/viewingRecord/viewingRecord',
    method: 'post',
    data
  })
}
